package team.zero.lemon.module.workflow.dao;

import org.apache.ibatis.annotations.Param;
import team.zero.lemon.common.persistence.ICrudDao;
import team.zero.lemon.common.persistence.annotation.MyBatisDao;
import team.zero.lemon.module.workflow.entity.ActivityParticipant;

import java.util.List;

@MyBatisDao
public interface IActivityParticipantDao extends ICrudDao<ActivityParticipant> {


    public List<ActivityParticipant> findByActivityId(@Param("activityId") int activityId);
    public List<ActivityParticipant> findParticipantsByActivityIdOrgId(@Param("activityId") Integer activityId,@Param("orgId") Integer orgId);
    public List<ActivityParticipant> findParticipantsByInstanceIdActivityId(@Param("instanceId") Integer instanceId,@Param("activityId") Integer activityId);
    public int deleteByActivityId(@Param("activityId") int activityId);
}